package day2018_lab02.test12;

public class Crilie extends Sheap {

    double ridus;
    double pi= Math.PI;
    double cr;
    double ca;

    public void setRidus(double ridus) {
        this.ridus = ridus;
    }

    public double getRidus() {
        return ridus;
    }

    @Override
    public void getArea() {
       // super.getArea();
        ca=pi*ridus;
        System.out.println("圆的面积为："+ca);
    }

    @Override
    public void getCrilie() {
        //super.getCrilie();
        cr=ridus*2*pi;
        System.out.println("圆的周长为："+cr);
    }
}
